<%@ page language="java" contentType="text/html; charset=UTF-8"  import="java.util.*,SiTuQingYou.vo.*,SiTuQingYou.vo.*"
    pageEncoding="UTF-8"%>
     <%
     String path = request.getContextPath();
    %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>

</head>
<body>
<% int  cid = Integer.parseInt(request.getParameter("cid"));%>
<form   method="post" id="f"  action="<%=path%>/ScenehomeServlet?method=modify&id=<%=cid %>" >
   
  <jsp:include page="../ScenehomeServlet">
		<jsp:param value="checkid" name="method"/>
		<jsp:param value="<%=cid %>" name="cid"/>
			</jsp:include>
			<%  
			Scene scene = (Scene)request.getAttribute("sceneone");
			%>
   景点名称：<input type="text" name="scenename"   value="<%=scene.getScenename()%>">
   <br/><br/>
    景点简介：<textarea  rows="3" name="intro"   val="<%=scene.getIntro()%>">  <%=scene.getIntro()%></textarea>
     <br/><br/>
     <jsp:include page="../ScenehomeServlet">
			<jsp:param value="allcity" name="method"/>
			</jsp:include>
			请选择景点城市：
     <select name="cityid"   id="city" >
   
<option value="<%=scene.getCity().getId() %>" ><%=scene.getCity().getCityname() %></option>
<option>-----------</option>
          <%
     ArrayList<City> allcity = (ArrayList<City>)request.getAttribute("allcity");
								for(City city:allcity){
     %>	
      <option value="<%=city.getId() %>"  >   <%=city.getCityname()%> </option><%} %>
    </select>
     
    请选择主题:  <select name="themeid">
    <jsp:include page="../ScenehomeServlet">
			<jsp:param value="sceneclass" name="method"/>
			</jsp:include>
			<option value="<%=scene.getTheme().getId() %>" ><%=scene.getTheme().getClassname()%></option>
<option>-----------</option>
      <% ArrayList<SceneClass> allclass = (ArrayList<SceneClass>)request.getAttribute("allscene");
								for(SceneClass sclass:allclass)	{  %>	  
   <option value="<%=sclass.getId()%>"><%=sclass.getClassname() %></option><% } %>
    </select>
    <br/><br/>
    是否属于热门:<input type="radio" id="0" name="city" checked> 不是<input type="radio" name="city" id="1"> 是
      <br/><br/>
     得分: <input type="text" name="hotscore" value="<%=scene.getHotscore()%>">
     <br><br>
       <input type="submit" value="修改"> 

</form>
</body>
</html>